package br.com.teste.ch01.ts;
//Pag 6
import java.util.Date;

import javax.jws.WebMethod;
import javax.jws.WebService;

//A propriedade endpoint linka a SIB(esta classe a SEI)
@WebService(endpointInterface = "br.com.teste.ch01.ts.TimeServer")
public class TimeServerImpl implements TimeServer {

	@Override
	@WebMethod
	public String getTimeAsString() {

		return new Date().toString();
	}

	@Override
	@WebMethod
	public long getTimeAsElapsed() {
		return new Date().getTime();
	}

}
